package com.aboo.web;

import java.io.FileNotFoundException;

import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Log4jConfigurer;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/dao-test.xml")
/**
 *所有数据层测试需要继承这个类
 * @author feipeng
 *
 */
public class SpringDaoTestSupport {
	
	protected final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	static {
		try {
			Log4jConfigurer.initLogging("classpath:log4j.xml");
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}

}
